<%--
	author:chengd
	time:2012/5/12 23:02:31
--%>



<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@ taglib uri="/WEB-INF/tags/CommonFunction.tld" prefix="cfn" %>
<%@include file="/commons/include/html_doctype.html"%>
<html>
<head>
	<title>添加</title>
	<%@include file="/commons/include/add.jsp" %>
    <script type="text/javascript" src="${ctx}/js/calendar/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="${ctx}/js/calendar/date.js"></script>
	<script type="text/javascript">
$(function(){
	selectDateMonth($("#acc_period_panel"), $("#acc_period"));
	
	jQuery("#dataForm").validate(
	{
		rules: {
			workshop_sn:{
				required: true
			},
			check_date:{
				required: true
			},			
			goods_sn:{
				required: true
			},
			quantity : {
			  required: true,
			  number:true,
			  min : 1
			}
		},
		messages: {
		},
		submitHandler:function(form)
		{
			jQuery(form).ajaxSubmit(_options);
		}
	});
});
_callback = function() {
	location.href = ctx + "/manage/sell/getGoodsCheck.htm";
}
validCallBack = function()
{
	//添加页面自定义校验

	return true;
};
	</script>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">车间物料盘点添加</td>
		<td>
			<div class="menuTool">
				<a class="save" id="dataFormSave" href="#">保存</a>
				<a class="back" href="getGoodsCheck.htm">返回</a>
			</div>
		</td>
	</tr>
</table>
<div class="line"></div>
<form id="dataForm" method="post" action="addGoodsCheck2.htm">
<table border="0" cellspacing="1" cellpadding="0" class="listTable">
	<tr>
		<td class="form_title">盘点单号：</td>
		<td class="form_input">${check_sn}</td>
		<td class="form_title">盘点日期：</td>
		<td class="form_input"><input type="text" id="check_date" name="check_date" readonly="readonly" value="" class="Wdate" onFocus="WdatePicker({isShowWeek:true})" /></td>
		<td class="form_title">财务统计核算期：</td>
		<td class="form_input"><input type="hidden" id="acc_period" name="acc_period" value="" /><div id="acc_period_panel"></div></td>
	</tr>
	<tr>
		<td class="form_title">车间代码：</td>
		<td class="form_input"><input type="text" id="workshop_sn" name="workshop_sn" value="" /></td>
		<td class="form_title">物料代码：</td>
		<td class="form_input"><input type="text" id="goods_sn" name="goods_sn" value="" /></td>
		<td class="form_title">盘存数量：</td>
		<td class="form_input"><input type="text" id="quantity" name="quantity" value="" /></td>
	</tr>
	<tr>
		<td class="form_title">备注：</td>
		<td class="form_input"><input type="text" id="remark" name="remark" value="" /></td>
		<td class="form_title">记账状态：</td>
		<td class="form_input"><select name="acc_status" id="acc_status">
		  <option value="0">未记账</option>
          <option value="1">已经记账</option>
	    </select></td>
	    <td class="form_title"></td>
		<td class="form_input"></td>
	</tr>
</table>
</form>
</body>
</html>
